<html>
<head>
  <link rel='stylesheet' href="../jsGUIGuy/guiguy.css" type='text/css'>
  <link rel='stylesheet' href="../site/tutorials/styles_blog.css" type='text/css'>
  <script type="text/javascript" src="../bibliotheques/jquery.js"></script>
  <script type="text/javascript" src="../bibliotheques/jquery-ui-1.7.2.dragdrop.min.js"></script>
  <script type="text/javascript" src="../bibliotheques/firebug/firebugx.js"></script>
  <script type="text/javascript" src="../jsGUIGuy/Misc.js"></script>
  <script type="text/javascript" src="../jsGUIGuy/Settings.js"></script>
  <script type="text/javascript" src="../jsGUIGuy/ServerInterface.js"></script>
  <script type="text/javascript" src="../jsGUIGuy/User.js"></script>
  <script type="text/javascript" src="../jsGUIGuy/PatternMapping.js"></script>
  <script type="text/javascript" src="../jsGUIGuy/GUIAttributes.js"></script>
  <script type="text/javascript" src="../jsGUIGuy/GUI.js"></script>
  <script type="text/javascript" src="../jsGUIGuy/GUIList.js"></script>
  <script type="text/javascript" src="../jsGUIGuy/GUIEvents.js"></script>
  <script type="text/javascript" src="../jsGUIGuy/GUIEventsOld.js"></script>
  <script type="text/javascript" src="../jsGUIGuy/GUIApi.js"></script>
  <script type="text/javascript" src="../jsGUIGuy/Init.js"></script>
  <script type="text/javascript">
    function DisplayMessage(text) {alert(text);}
  </script>

</head>
<body>
    <!-- http://dstest.ohmydata.org/web/fa_dev.php/generic_objects -->
    <!-- http://localhost:90/sources_sf_taf/web/fa_dev.php/generic_objects -->
    <!-- http://localhost:90/backend/datasource/datasource.php -->
    <div id="blogContainer" class="load_on_start" dataObject="AnyObjectContainer" defaultView="ListView" datasource="http://localhost:90/backend/datasource/datasource.php?">
	  <div>
        <a class="button" href="javascript:" onClick="this.blur();"><span onClick="GG.events.insertNew(this,'form')"> -New entry- </span></a>
        <a class="button" href="javascript:" onClick="this.blur();"><span onClick="GG.events.refreshList(this)"> -Refresh- </span></a>
      </div>
      
      <div class="groupPatterns">
        <div class="blog_entry" id="pattern_AnyObjectContainer_form" style="display:none;">
          <form>
            List Name : <input type="text" class="blog_title Name" name="Name" dataType="Text"><br>
            <a href="javascript:" onclick="GG.events.applyEdit(this,function(){GG.events.switchToView(this,'ListView',function(obj){$(obj).hide();},function(obj){$(obj).show();})})"> -Save- </a>
            <a href="javascript:" onclick="GG.events.switchToView(this,'ListView',function(obj){$(obj).hide();},function(obj){$(obj).show();})"> -Back to list- </a>
          <form>
        </div>      
        
        
        <div class="blog_entry" id="pattern_AnyObjectContainer_ListView" style="display:none;">
          <h2 class="blog_title Name dragpoint"></h2>
		  <a href="javascript:" onclick="GG.events.switchToView(this,'form',function(obj){$(obj).hide();},function(obj){$(obj).show();})"> -Edit- </a>
		  <a href="javascript:" onclick="this.blur();"><span onClick="GG.events.insertNew(this,'form','first','twit')">-New twit-</span></a>
		  <a href="javascript:" onclick="this.blur();"><span onClick="GG.events.insertNew(this,'form','first','link')">-New link-</span></a>
          
		  
		  <div class="load_on_parent" dataObject="*" defaultView="ListView" style="margin-left:50px;" datasource="http://localhost:90/backend/datasource/datasource.php?">
            <div class="groupPatterns">
              <div class="blog_comment" id="pattern_twit_form" style="display:none;">
                <form class="dragpoint">
                  Content : <input type="text" class="comment_content content" name="content" dataType="Text"><br>
                  <a href="javascript:void();" onclick="GG.events.applyEdit(this,function(){GG.events.switchToView(this,'ListView',function(obj){$(obj).hide();},function(obj){$(obj).show();})})"> -Save- </a>
                  <a href="javascript:void();" onclick="GG.events.switchToView(this,'ListView',function(obj){$(obj).hide();},function(obj){$(obj).show();})"> -Back to list- </a>
                <form>
              </div>      
              
              <div class="blog_comment" id="pattern_twit_ListView" style="display:none;">
                <h2 class="comment_title content dragpoint"></h2><h3 class="order_rank"></h3>
                <a href="javascript:void();" onclick="GG.events.switchToView(this,'form',function(obj){$(obj).hide();},function(obj){$(obj).show();})"> -Edit- </a>
              </div>  
			  
			  <div class="blog_comment" id="pattern_link_form" style="display:none;">
                <form class="dragpoint">
                  URL : <input type="text" class="comment_content url" name="url" dataType="Text"><br>
                  <a href="javascript:void();" onclick="GG.events.applyEdit(this,function(){GG.events.switchToView(this,'ListView',function(obj){$(obj).hide();},function(obj){$(obj).show();})})"> -Save- </a>
                  <a href="javascript:void();" onclick="GG.events.switchToView(this,'ListView',function(obj){$(obj).hide();},function(obj){$(obj).show();})"> -Back to list- </a>
                <form>
              </div>      
              
              <div class="blog_comment" id="pattern_link_ListView" style="display:none;">
                (link)<h2 class="comment_title url dragpoint"></h2><h3 class="order_rank"></h3>
                <a href="javascript:void();" onclick="GG.events.switchToView(this,'form',function(obj){$(obj).hide();},function(obj){$(obj).show();})"> -Edit- </a>
              </div> 
            </div>
          </div>
        </div>   
      </div>     
      
  	</div>    
</body>
</html>